Skip to content

Conversation

@Alex-PLACET
Copy link
Member

No description provided.

@Alex-PLACET Alex-PLACET self-assigned this Nov 10, 2025
@codecov-commenter
Copy link

codecov-commenter commented Nov 10, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 80.32787% with 12 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@fd49f83). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/deserialize.cpp 66.66% 12 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #60   +/-   ##
=======================================
  Coverage        ?   82.52%           
=======================================
  Files           ?       38           
  Lines           ?     1774           
  Branches        ?        0           
=======================================
  Hits            ?     1464           
  Misses          ?      310           
  Partials        ?        0           
Flag Coverage Δ
unittests 82.52% <80.32%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Alex-PLACET Alex-PLACET marked this pull request as ready for review November 10, 2025 13:31
@Alex-PLACET Alex-PLACET requested review from Hind-M and JohanMabille and removed request for Hind-M and JohanMabille December 8, 2025 12:08
namespace sparrow_ipc
{
template <typename T>
[[nodiscard]] sparrow::interval_array<T> deserialize_non_owning_interval_array(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this function is exactly the same (except from data type) as the one used in primitive_array, so we should probably refactor and use some generic function.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I addressed your point, now there is a: deserialize_non_owning_simple_array

const std::string name = field->name() == nullptr ? "" : field->name()->str();
const bool nullable = field->nullable();
const auto field_type = field->type_type();
// TODO rename all the deserialize_non_owning... fcts since this is not correct anymore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this? This is actually still relevant as we are using now optionally_owned_buffer (which is not necessarily non owning as the functions names suggest).

@Hind-M
Copy link
Member

Hind-M commented Dec 9, 2025

Should this be linked to the corresponding issue?

@Alex-PLACET Alex-PLACET linked an issue Dec 12, 2025 that may be closed by this pull request
@Alex-PLACET Alex-PLACET requested a review from Hind-M December 12, 2025 14:38
${SPARROW_IPC_INCLUDE_DIR}/sparrow_ipc/config/sparrow_ipc_version.hpp
${SPARROW_IPC_INCLUDE_DIR}/sparrow_ipc/compression.hpp
${SPARROW_IPC_INCLUDE_DIR}/sparrow_ipc/deserialize_fixedsizebinary_array.hpp
${SPARROW_IPC_INCLUDE_DIR}/sparrow_ipc/deserialize_interval_array.hpp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deserialize_array_impl.hpp is missing from the CMakeLists.txt.

const std::string name = field->name() == nullptr ? "" : field->name()->str();
const bool nullable = field->nullable();
const auto field_type = field->type_type();
// TODO rename all the deserialize_non_owning... fcts since this is not correct anymore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add back the comment as it's still relevant?

ArrowSchema schema = make_non_owning_arrow_schema(
format,
name.data(),
return sparrow_ipc::detail::deserialize_non_owning_simple_array<sparrow::primitive_array, T>(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return sparrow_ipc::detail::deserialize_non_owning_simple_array<sparrow::primitive_array, T>(
return detail::deserialize_non_owning_simple_array<sparrow::primitive_array, T>(

Using sparrow_ipc:: is redundant as we are already in that namespace and not consistent with the rest of the codebase.

@Alex-PLACET Alex-PLACET merged commit 6164a91 into QuantStack:main Dec 12, 2025
28 of 29 checks passed
@Alex-PLACET Alex-PLACET deleted the add_interval_array branch December 12, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support of interval array

3 participants